package com.ms.services.ftp;


import com.ms.infrastructure.spring.ParametroProperties;

/**
 * Created by RAZANERO on 31/01/14.
 */
public class FtpAuthResolverBDImpl implements FtpAuthResolver {
    ParametroProperties parametroProperties;


    public FtpBean buildApiAuth() {
        FtpBean result = new FtpBean();
        result.setHost(parametroProperties.getProperty(FtpAuthResolver.FTP_HOST));
        result.setUser(parametroProperties.getProperty(FtpAuthResolver.FTP_USER));
        result.setPassword(parametroProperties.getProperty(FtpAuthResolver.FTP_PASS));
        return result;
    }

    public void setParametroProperties(ParametroProperties parametroProperties) {
        this.parametroProperties = parametroProperties;
    }


}
